package com.yunhe.transfer.client.fallback;

import com.yunhe.transfer.client.MeasHistoryClient;
import com.yunhe.common.model.DomainList;
import com.yunhe.common.model.data.Measurement;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class MeasHistoryFallbackFactory implements FallbackFactory<MeasHistoryClient> {
    @Override
    public MeasHistoryClient create(Throwable cause) {
        return new MeasHistoryClient() {
            @Override
            public void save(DomainList<Measurement> domainList, String frequency) {

            }
        };
    }
}
